package com.hex.ds.hdtp.core.inf.metadata.converter;

import com.hex.ds.hdtp.core.inf.metadata.entity.TableFieldsEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.Map;

/**
 * @Package com.hex.ds.hdtp.core.inf.metadata.converter
 * @ClassName IHiveSqlResultMapper
 * @Description Hive sql的结果转对象
 * @Author Yin.Yang
 * @Date 2023/9/4 17:33
 * @Version v1.0
 **/
@Mapper(componentModel = "spring")
public interface IHiveSqlResultMapper {
    @Mapping(source = "col_name", target = "columnName")
    @Mapping(source = "comment", target = "columnCommet")
    TableFieldsEntity toTableFieldsBean(Map<String, String> sqlResult);
}
